package com.ljl.test;

import java.util.List;
import java.util.Map;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.entity.Billrecord;
import com.entity.Deliver;
import com.entity.Deliverrecord;
import com.entity.Orderdetail;
import com.entity.Payrecord;
import com.service.ljl.billrecordservice;
import com.service.ljl.deliverrecordservice;
import com.service.ljl.orderdetailservice;


public class deliverrecordtest {
	private deliverrecordservice deliverrecordservice;
	@Before
	public void init() {
		ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
		deliverrecordservice=ac.getBean(deliverrecordservice.class);
	}
	@After
	public void tearDown() {
		deliverrecordservice=null;
	}
	
	@Test
	public void delete() {
		deliverrecordservice.delete(1L);
	}
	
//	@Test
//	public void findall() {
//		Map map=deliverrecordservice.findall(10, 1);
//		List<Deliverrecord> li=(List<Deliverrecord>) map.get("deliverrecord");
//		for(int i=0;i<li.size();i++) {
//			System.out.println(li.get(i).getDeliver().getOrder().getOrTitle());
//		}
//	}
	
	

}
